StellarPay\Subscriptions\Models\Subscription B

Total Complexity 82
Dependencies 23
Dependents 51
Total lines 694
Lines of code 295
Logical lines of code 127
Comment lines 216
Methods 50
Properties 1

Methods 50

Method Rating Maintainability Complexity Lines of code
getFormattedNextBillingAt()
S
61 8 12
getLastRenewalOrder()
S
58 3 16
getPendingPaymentMessage()
S
57 2 18
cancel()
S
68 3 7
canUpdate()
S
71 3 6
getStripeDashboardLink()
S
67 3 8
calculateEndDate()
S
60 2 14
suspend()
S
69 2 7
resume()
S
69 2 7
complete()
S
69 2 7
getTableName()
S
75 2 4
getLastPaymentMethod()
S
67 2 8
totalCount()
S
75 2 4
getSubscriptionProduct()
S
65 2 9
isSubscriptionPayments()
S
69 2 7
canCancel()
S
72 2 6
getFormattedStatusLabel()
S
66 2 9
customerHasSubscriptions()
S
67 2 8
updatePaymentMethod()
S
71 2 6
updateStatus()
S
69 2 7
getFormattedBillingPeriod()
S
69 2 7
save()
S
69 2 7
calculateNextBillingDate()
S
62 1 12
delete()
S
80 1 3
canUpdateStatus()
S
80 1 3
canUpdatePaymentMethod()
S
65 1 10
getMetaTableName()
S
80 1 3
getMetaTableNameWithoutDBPrefix()
S
80 1 3
hasCancellableStatus()
S
79 1 3
hasEndDate()
S
80 1 3
getCancellableSubscriptionStatuses()
S
69 1 8
deleteNewPaymentMethodForRenewal()
S
80 1 3
getNewPaymentMethodForRenewal()
S
80 1 3
saveNewPaymentMethodForRenewal()
S
79 1 3
isScheduleType()
S
78 1 3
getLastOrder()
S
79 1 3
getLastOrderAmount()
S
75 1 4
find()
S
79 1 3
factory()
S
80 1 3
fromQueryBuilderObject()
S
80 1 3
query()
S
80 1 3
findByTransactionId()
S
78 1 3
findByFirstOrderId()
S
78 1 3
findAllByFirstOrderId()
S
78 1 3
getCustomerId()
S
82 1 3
cancelAtPeriodEnd()
S
79 1 3
findByFirstOrderAndItemId()
S
71 1 6
create()
S
73 1 5
hasSubscriptions()
S
79 1 3
removeCancelAtPeriodEnd()
S
80 1 3